192
|
How do I display radio buttons for all cells in the column

With ComboBox1
.Columns.Add("Radio").Def(exCellHasRadioButton) = True
.Items.AddItem 0
.Items.AddItem 1
End With
|
191
|
How do I display checkboxes for all cells in the column

With ComboBox1
.Columns.Add("Check").Def(exCellHasCheckBox) = True
.Items.AddItem 0
.Items.AddItem 1
End With
|
247
|
How do I display as strikeout an item

With ComboBox1
.Columns.Add "Default"
With .Items
.ItemStrikeOut(.AddItem("strikeout")) = True
End With
End With
|
248
|
How do I display as strikeout a cell or an item

With ComboBox1
.Columns.Add "Default"
With .Items
.CellCaptionFormat(.AddItem("gets <s>strikeout</s> only a portion of text"),0) = exHTML
End With
End With
|
249
|
How do I display as strikeout a cell

With ComboBox1
.Columns.Add "Default"
With .Items
.CellStrikeOut(.AddItem("strikeout"),0) = True
End With
End With
|
241
|
How do I display as italic an item

With ComboBox1
.Columns.Add "Default"
With .Items
.ItemItalic(.AddItem("italic")) = True
End With
End With
|
242
|
How do I display as italic a cell or an item

With ComboBox1
.Columns.Add "Default"
With .Items
.CellCaptionFormat(.AddItem("gets <i>italic</i> only a portion of text"),0) = exHTML
End With
End With
|
243
|
How do I display as italic a cell

With ComboBox1
.Columns.Add "Default"
With .Items
.CellItalic(.AddItem("italic"),0) = True
End With
End With
|
90
|
How do I disable the full-row selection in the control

With ComboBox1
.FullRowSelect = False
.Columns.Add "Column"
.Items.AddItem "One"
.Items.AddItem "Two"
End With
|
113
|
How do I disable the control

With ComboBox1
.Enabled = False
End With
|
80
|
How do I disable sorting the columns when clicking the control's header

With ComboBox1
.SortOnClick = exNoSort
.Columns.Add "1"
.Columns.Add "2"
End With
|
81
|
How do I disable sorting a specified column when clicking its header

With ComboBox1
.Columns.Add "1"
.Columns.Add("NoSort").AllowSort = False
End With
|
118
|
How do I disable showing the tooltip for all control
With ComboBox1
.ToolTipDelay = 0
.Columns.Add("tootip").ToolTip = "this is a tooltip assigned to a column"
End With
|
178
|
How do I disable resizing a column at runtime

With ComboBox1
.Columns.Add("Unsizable").AllowSizing = False
.Columns.Add "C2"
.Columns.Add "C3"
.Columns.Add "C4"
End With
|
250
|
How do I disable or enable an item

With ComboBox1
.Columns.Add "Default"
With .Items
.EnableItem(.AddItem("disabled")) = False
End With
.Items.AddItem "enabled"
End With
|
179
|
How do I disable drag and drop columns

With ComboBox1
.Columns.Add("C1").AllowDragging = False
.Columns.Add("C2").AllowDragging = False
End With
|
51
|
How do I change visual appearance of the +/- ( expand/collapse ) buttons

With ComboBox1
.LinesAtRoot = exGroupLinesAtRoot
.HasButtons = exWPlus
.Columns.Add "Column"
With .Items
h = .AddItem("Root 1")
.InsertItem h,,"Child 1"
.InsertItem h,,"Child 2"
.ExpandItem(h) = True
h = .AddItem("Root 2")
.InsertItem h,,"Child"
End With
End With
|
266
|
How do I change the visual effect for the cell, using your EBN files

With ComboBox1
.VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn"
.Columns.Add "C1"
.Columns.Add "C2"
With .Items
h = .AddItem("Cell 1")
.CellCaption(h,1) = "Cell 2"
.CellBackColor(h,1) = &H1000000
End With
End With
|
147
|
How do I change the visual aspect only for the thumb in the scroll bar, using EBN

With ComboBox1
.VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn"
.VisualAppearance.Add 2,"c:\exontrol\images\pushed.ebn"
.VisualAppearance.Add 3,"c:\exontrol\images\hot.ebn"
.Background(exHSThumb) = &H1000000
.Background(exHSThumbP) = &H2000000
.Background(exHSThumbH) = &H3000000
.ColumnAutoResize = False
.Columns.Add("S").Width = 483
End With
|
140
|
How do I change the visual aspect of the drop down filter button, using EBN

With ComboBox1
.VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn"
.Background(exHeaderFilterBarButton) = &H1000000
.Columns.Add("Filter").DisplayFilterButton = True
End With
|
143
|
How do I change the visual aspect of the drop down calendar window, that shows up if I click the drop down filter button, using EBN

With ComboBox1
.VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn"
.VisualAppearance.Add 2,"c:\exontrol\images\pushed.ebn"
.Background(exDateHeader) = &H1000000
.Background(exDateTodayUp) = &H1000000
.Background(exDateTodayDown) = &H2000000
.Background(exDateScrollThumb) = &H1000000
.Background(exDateScrollRange) = RGB(230,230,230)
.Background(exDateSeparatorBar) = RGB(230,230,230)
.Background(exDateSelect) = &H1000000
With .Columns.Add("Date")
.FilterType = exDate
.DisplayFilterButton = True
.DisplayFilterDate = True
End With
End With
|
142
|
How do I change the visual aspect of the close button in the filter bar, using EBN

With ComboBox1
.VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn"
.Background(exFooterFilterBarButton) = &H1000000
.Columns.Add("Filter").FilterType = exBlanks
.ApplyFilter
End With
|
144
|
How do I change the visual aspect of selected item in the drop down filter window, using your EBN technology

With ComboBox1
.VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn"
.Background(exSelBackColorFilter) = &H1000000
.Background(exSelForeColorFilter) = RGB(255,20,20)
.Columns.Add("Filter").DisplayFilterButton = True
End With
|
141
|
How do I change the visual aspect of buttons in the cell, using EBN

With ComboBox1
.VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn"
.VisualAppearance.Add 2,"c:\exontrol\images\pushed.ebn"
.Background(exCellButtonUp) = &H1000000
.Background(exSizeGrip) = &H2000000
.SelForeColor = RGB(0,0,0)
.ShowFocusRect = False
.Columns.Add("Column 1").Def(exCellHasButton) = True
.Items.AddItem "Button 1"
.Items.AddItem "Button 2"
.Columns.Add "Column 2"
End With
|
148
|
How do I change the visual aspect for thumb parts in the scroll bars, using EBN

With ComboBox1
.VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn"
.VisualAppearance.Add 2,"c:\exontrol\images\pushed.ebn"
.VisualAppearance.Add 3,"c:\exontrol\images\hot.ebn"
.Background(exHSThumb) = &H1000000
.Background(exHSThumbP) = &H2000000
.Background(exHSThumbH) = &H3000000
.Background(exVSThumb) = &H1000000
.Background(exVSThumbP) = &H2000000
.Background(exVSThumbH) = &H3000000
.ColumnAutoResize = False
.ScrollBySingleLine = True
.Columns.Add("S").Width = 483
With .Items
.ItemHeight(.AddItem("Item 1")) = 248
End With
.Items.AddItem "Item 2"
End With
|
236
|
How do I change the visual appearance for the item, using your EBN technology

With ComboBox1
.VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn"
.Columns.Add "Default"
With .Items
h = .AddItem("Root")
hC = .InsertItem(h,,"Child 1")
.ItemBackColor(hC) = &H1000000
.InsertItem h,,"Child 2"
.ExpandItem(h) = True
End With
End With
|
98
|
How do I change the visual appearance effect for the selected item, using EBN

With ComboBox1
.VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn"
.SelBackColor = &H1000000
.SelForeColor = RGB(0,0,0)
.ShowFocusRect = False
.Columns.Add "Column"
.Items.AddItem 0
.Items.AddItem 1
End With
|
335
|
How do I change the text in the edit or label area

With ComboBox1
.Columns.Add "Column"
With .Items
.AddItem "Item 3"
.AddItem "Item 1"
.AddItem "Item 2"
End With
.EditText(0) = "Test"
End With
|
157
|
How do I change the item's foreground color for numbers between an interval - Range

With ComboBox1
.ConditionalFormats.Add("%0 >= 2 and %0 <= 10").ForeColor = RGB(255,0,0)
.Columns.Add "Numbers"
.Items.AddItem 1
.Items.AddItem 2
.Items.AddItem 10
.Items.AddItem 20
End With
|
156
|
How do I change the item's background color for numbers less than a value

With ComboBox1
.ConditionalFormats.Add("%0 < 10").BackColor = RGB(255,0,0)
.Columns.Add "Numbers"
.Items.AddItem 1
.Items.AddItem 2
.Items.AddItem 10
.Items.AddItem 20
End With
|
102
|
How do I change the height of the control's filterbar

With ComboBox1
.FilterBarHeight = 32
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = exBlanks
End With
.ApplyFilter
End With
|
251
|
How do I change the height of an item

With ComboBox1
.ScrollBySingleLine = True
.Columns.Add "Default"
With .Items
.ItemHeight(.AddItem("height")) = 128
End With
.Items.AddItem "enabled"
End With
|
101
|
How do I change the header's foreground color

With ComboBox1
.HeaderForeColor = RGB(255,0,0)
.Columns.Add "Column 1"
.Columns.Add "Column 2"
.Items.AddItem "Item 1"
End With
|
103
|
How do I change the foreground color of the control's filterbar

With ComboBox1
.FilterBarForeColor = RGB(255,0,0)
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = exBlanks
End With
.ApplyFilter
End With
|
237
|
How do I change the foreground color for the item

With ComboBox1
.Columns.Add "Default"
With .Items
h = .AddItem("Root")
hC = .InsertItem(h,,"Child 1")
.ItemForeColor(hC) = RGB(255,0,0)
.InsertItem h,,"Child 2"
.ExpandItem(h) = True
End With
End With
|
106
|
How do I change the font of the control's filterbar

With ComboBox1
.FilterBarFont.Size = 20
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = exBlanks
End With
.ApplyFilter
End With
|
568
|
How do I change the drop down filter icon/button (black)

With ComboBox1
.BeginUpdate
With .VisualAppearance
.Add 1,"gBFLBCJwBAEHhEJAAEhABXUIQAAYAQGKIcBiAKBQAGYBIJDEMgzDDAUBjKKocQTC4AIQjCK4JDKHYJRpHEZyCA8EhqGASRAFUQBYiWE4oSpLABQaK0ZwIGyRIrkGQgQ" & _
"gmPYDSDNU4zVIEEglBI0TDNczhNDENgtGYaJqHIYpZBcM40TKkEZoSIITZcRrOEBiRL1S0RBhGcRUHZlWzdN64LhuK47UrWdD/XhdVzXRbjfz1Oq+bxve48Br7A5yYTh" & _
"dr4LhOFQ3RjIL4xbIcUwGe6VZhjOLZXjmO49T69HTtOCYBEBA"
End With
.Background(exCursorHoverColumn) = -1
.Background(exHeaderFilterBarButton) = &H1000000
.Background(exBackColorFilter) = RGB(0,0,1)
.Background(exForeColorFilter) = RGB(255,255,255)
.Description(exFilterBarExclude) = "<bgcolor 0><fgcolor ffffff> Exclude </fgcolor></bgcolor>"
.HeaderAppearance = None2
.HeaderBackColor = RGB(0,0,0)
.HeaderForeColor = RGB(255,255,255)
.HeaderVisible = 1
With .Columns.Add("Filter")
.FilterList = FilterListEnum.exShowExclude Or FilterListEnum.exShowCheckBox
.DisplayFilterButton = True
.AllowSort = False
.AllowDragging = False
End With
With .Items
.AddItem "One"
.AddItem "Two"
.AddItem "Three"
End With
.EndUpdate
End With
|
86
|
How do I change the control's foreground color

With ComboBox1
.ForeColor = RGB(120,120,120)
.Columns.Add "Column"
.Items.AddItem "item"
End With
|
322
|
How do I change the control's border, using your EBN files

With ComboBox1
.VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn"
.Appearance = &H1000000
End With
|
85
|
How do I change the control's background color

With ComboBox1
.BackColor = RGB(200,200,200)
End With
|
87
|
How do I change the control's background / foreground color on the locked area

With ComboBox1
.CountLockedColumns = 1
.ForeColorLock = RGB(240,240,240)
.BackColorLock = RGB(128,128,128)
.ColumnAutoResize = False
.Columns.Add("Locked").Width = 128
.Columns.Add("Un-Locked 1").Width = 128
.Columns.Add("Un-Locked 2").Width = 128
.Columns.Add("Un-Locked 3").Width = 128
With .Items
.CellCaption(.AddItem("locked"),1) = "unlocked"
End With
End With
|
158
|
How do I change the column's foreground color for numbers between an interval - Range

With ComboBox1
With .ConditionalFormats.Add("%0 >= 2 and %0 <= 10")
.Bold = True
.ForeColor = RGB(255,0,0)
.ApplyTo = &H1
End With
.Columns.Add "N1"
.Columns.Add "N2"
With .Items
.CellCaption(.AddItem(1),1) = 2
End With
With .Items
.CellCaption(.AddItem(3),1) = 3
End With
With .Items
.CellCaption(.AddItem(10),1) = 11
End With
With .Items
.CellCaption(.AddItem(13),1) = 31
End With
.SearchColumnIndex = 1
End With
|
175
|
How do I change the column's caption

With ComboBox1
.Columns.Add("Column").Caption = "new caption"
End With
|
97
|
How do I change the colors for the selected item

With ComboBox1
.SelBackColor = RGB(0,0,0)
.Columns.Add "Column"
.Items.AddItem 0
.Items.AddItem 1
End With
|
267
|
How do I change the cell's foreground color

With ComboBox1
.Columns.Add "C1"
.Columns.Add "C2"
With .Items
h = .AddItem("Cell 1")
.CellCaption(h,1) = "Cell 2"
.CellForeColor(h,1) = RGB(255,0,0)
End With
End With
|
265
|
How do I change the cell's background color

With ComboBox1
.Columns.Add "C1"
.Columns.Add "C2"
With .Items
h = .AddItem("Cell 1")
.CellCaption(h,1) = "Cell 2"
.CellBackColor(h,1) = RGB(255,0,0)
End With
End With
|
264
|
How do I change the caption or value for a particular cell

With ComboBox1
.Columns.Add "C1"
.Columns.Add "C2"
With .Items
.CellCaption(.AddItem("Cell 1"),1) = "Cell 2"
End With
End With
|
115
|
How do I change the caption being displayed in the control's filter bar

With ComboBox1
.FilterBarCaption = "your filter caption"
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = exBlanks
End With
.ApplyFilter
End With
|
104
|
How do I change the background color of the control's filterbar

With ComboBox1
.FilterBarBackColor = RGB(240,240,240)
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = exBlanks
End With
.ApplyFilter
End With
|
235
|
How do I change the background color for the item

With ComboBox1
.Columns.Add "Default"
With .Items
h = .AddItem("Root")
hC = .InsertItem(h,,"Child 1")
.ItemBackColor(hC) = RGB(255,0,0)
.InsertItem h,,"Child 2"
.ExpandItem(h) = True
End With
End With
|
33
|
How do I change the "All", "Blanks" or/and "NonBlanks" caption in the drop down filter window

With ComboBox1
.Columns.Add("Column").DisplayFilterButton = True
.Description(exFilterBarAll) = "new name for (All)"
End With
|
111
|
How do I call your x-script language

With ComboBox1
With .ExecuteTemplate("Columns.Add(`Column`)")
.HeaderStrikeOut = True
.HeaderBold = True
End With
End With
|
110
|
How do I call your x-script language

With ComboBox1
.Template = "Columns.Add(`Column`).HTMLCaption = `<b>C</b>olumn`"
End With
|
238
|
How do I bold an item

With ComboBox1
.Columns.Add "Default"
With .Items
.ItemBold(.AddItem("bold")) = True
End With
End With
|
239
|
How do I bold a cell or an item

With ComboBox1
.Columns.Add "Default"
With .Items
.CellCaptionFormat(.AddItem("gets <b>bold</b> only a portion of text"),0) = exHTML
End With
End With
|
240
|
How do I bold a cell

With ComboBox1
.Columns.Add "Default"
With .Items
.CellBold(.AddItem("bold"),0) = True
End With
End With
|
233
|
How do I associate an extra data to an item

With ComboBox1
.Columns.Add "Default"
With .Items
.ItemData(.AddItem("item")) = "your extra data"
End With
End With
|
163
|
How do I assign an icon to the button in the scrollbar

With ComboBox1
.Images "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" & _
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" & _
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
.ScrollPartVisible(exHScroll,exLeftB1Part) = True
.ScrollPartCaption(exHScroll,exLeftB1Part) = "<img>1</img>"
.ScrollHeight = 18
.ScrollButtonWidth = 18
End With
|
164
|
How do I assign a tooltip to a scrollbar

With ComboBox1
.ScrollToolTip(exHScroll) = "This is a tooltip being shown when you click and drag the thumb in the horizontal scroll bar"
.ColumnAutoResize = False
.Columns.Add("C1").Width = 256
.Columns.Add("C2").Width = 256
.Columns.Add("C3").Width = 256
End With
|
578
|
How do I assign a database to your control, using ADO, ADOR or ADODB objects (MDB,JET)

With ComboBox1
.BeginUpdate
.ColumnAutoResize = False
Set rs = CreateObject("ADOR.Recordset")
With rs
.Open "Orders","Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program Files\Exontrol\ExComboBox\Sample\Access\SAMPLE.MDB",3,3
End With
.DataSource = rs
.EndUpdate
End With
|
99
|
How do I assign a database to your control, using ADO, ADOR or ADODB objects

With ComboBox1
.ColumnAutoResize = False
Set rs = CreateObject("ADOR.Recordset")
With rs
.Open "Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExComboBox\Sample\Access\SAMPLE.MDB",3,3
End With
.DataSource = rs
End With
|
200
|
How do I arrange my columns on multiple lines

With ComboBox1
.HeaderHeight = 32
.Columns.Add("").HTMLCaption = "Line 1<br>Line 2"
End With
|
201
|
How do I arrange my columns on multiple levels

With ComboBox1
.Columns.Add("S").Width = 32
.Columns.Add("Level 2").LevelKey = 1
.Columns.Add("Level 3").LevelKey = 1
.Columns.Add("Level 4").LevelKey = 1
.Columns.Add("Level 1").LevelKey = "2"
.Columns.Add("Level 2").LevelKey = "2"
.Columns.Add("Level 3").LevelKey = "2"
.Columns.Add("Level 4").LevelKey = "2"
.Columns.Add("E").Width = 32
End With
|
303
|
How do I apply HTML format to a cell

With ComboBox1
.TreeColumnIndex = -1
.Images "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" & _
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" & _
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
.HTMLPicture("p1") = "c:\exontrol\images\zipdisk.gif"
.HTMLPicture("p2") = "c:\exontrol\images\auction.gif"
.Columns.Add "Default"
With .Items
h = .AddItem("The following item shows some of the HTML format supported:")
.CellHAlignment(h,0) = CenterAlignment
h = .AddItem("<br>text icons <img>1</img>, <img>2</img>, ... pictures <img>p1</img>, <img>p2</img> <br><br>text <b>bold</b>, <i>italic</i>, <" & _
"u>underline</u>, <s>strikeout</s>, ...<br><dotline>and so on...<br> <a>anchor</a> or <a2>hyperlink</a><br><fgcolor=FF0000>fgcolo" & _
"r</fgcolor> or <bgcolor=00FF00>bgcolor</bgcolor> ")
.CellCaptionFormat(h,0) = exHTML
.CellSingleLine(h,0) = exCaptionWordWrap
End With
End With
|
182
|
How do I align the icon in the column's header to the right

With ComboBox1
.Images "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" & _
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" & _
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
With .Columns.Add("ColumnName")
.HeaderImage = 1
.HeaderImageAlignment = RightAlignment
End With
End With
|
346
|
How do change the visual appearance for the drop down border, using EBN

With ComboBox1
.VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn"
.DropDownBorder = &H1000000
End With
|
70
|
How do change the visual appearance for the control's header bar, using EBN

With ComboBox1
.VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn"
.HeaderBackColor = &H1000000
End With
|
197
|
How do change the vertical alignment for all cells in the column

With ComboBox1
.Columns.Add("MultipleLine").Def(exCellSingleLine) = False
.Columns.Add("VAlign").Def(exCellVAlignment) = 2
With .Items
.CellCaption(.AddItem("This is a bit of long text that should break the line"),1) = "bottom"
End With
With .Items
.CellCaption(.AddItem("This is a bit of long text that should break the line"),1) = "bottom"
End With
End With
|
196
|
How do change the foreground color for all cells in the column

With ComboBox1
.Columns.Add("ForeColor").Def(exCellForeColor) = 255
.Items.AddItem 0
.Items.AddItem 1
End With
|
195
|
How do change the background color for all cells in the column

With ComboBox1
.Columns.Add("BackColor").Def(exCellBackColor) = 255
.Items.AddItem 0
.Items.AddItem 1
End With
|
5
|
How can I use HTML format in column's header

With ComboBox1
.Columns.Add("ColumnName").HTMLCaption = "<b>HTML</b> <fgcolor=0000FF>Col</fgcolor>umn"
End With
|
28
|
How can I underline the column's header

With ComboBox1
.Columns.Add("Column 1").HeaderUnderline = True
End With
|
213
|
How can I underline all cells in the column

With ComboBox1
Set var_ConditionalFormat = .ConditionalFormats.Add("1")
With var_ConditionalFormat
.Underline = True
.ApplyTo = exFormatToColumns
End With
.Columns.Add "Column"
.Items.AddItem 0
.Items.AddItem 1
End With
|
185
|
How can I specify the minimum width for the column, if I use WidthAutoResize property

With ComboBox1
With .Columns.Add("Auto")
.WidthAutoResize = True
.MinWidthAutoResize = 32
End With
.Items.AddItem 0
.Items.AddItem 1
End With
|
186
|
How can I specify the maximum width for the column, if I use WidthAutoResize property

With ComboBox1
With .Columns.Add("Auto")
.WidthAutoResize = True
.MinWidthAutoResize = 32
.MaxWidthAutoResize = 128
End With
.Items.AddItem 0
.Items.AddItem 1
End With
|
441
|
How can I specify the format for negative numbers

With ComboBox1
.BeginUpdate
.Columns.Add("Def").Def(exCellCaptionFormat) = 1
With .Items
h = .AddItem(-100000.27)
.FormatCell(h,0) = "(value format '') + ' <fgcolor=808080>(default)'"
h = .AddItem(-100000.27)
.FormatCell(h,0) = "(value format '||||1') + ' <fgcolor=808080>(Negative sign, number; for example, -1.1)'"
End With
.EndUpdate
End With
|
432
|
How can I specify an item to be always the last item

With ComboBox1
.BeginUpdate
.TreeColumnIndex = -1
.Columns.Add("Numbers").SortType = SortNumeric
With .Items
.AddItem 1
.AddItem 2
.AddItem 3
.AddItem 4
h = .AddItem("last")
.CellHAlignment(h,0) = RightAlignment
.SortableItem(h) = False
.SortChildren 0,0,True
End With
.EndUpdate
End With
|
433
|
How can I specify an item to be always the first item

With ComboBox1
.BeginUpdate
.TreeColumnIndex = -1
.Columns.Add("Numbers").SortType = SortNumeric
With .Items
.AddItem 1
.AddItem 2
.AddItem 3
.AddItem 4
h = .AddItem("first")
.ItemPosition(h) = 0
.CellHAlignment(h,0) = RightAlignment
.SortableItem(h) = False
.SortChildren 0,0,False
End With
.EndUpdate
End With
|
530
|
How can I specify alternate background colors for each root item, similar with BackColorAlternate

With ComboBox1
.BeginUpdate
.LinesAtRoot = exLinesAtRoot
With .Columns.Add("Default")
.Def(exCellHasCheckBox) = True
.PartialCheck = True
End With
With .Columns.Add("Position")
.FormatColumn = "( ( 1:=( ( 0:=(1 rpos '') ) lfind `.`) ) < 0 ? =:0 : (=:0 left =:1) )"
.Visible = False
End With
With .ConditionalFormats.Add("%C1 mod 2")
.BackColor = RGB(240,240,240)
End With
With .Items
h = .AddItem("Root 1")
.InsertItem h,,"Child 1"
.InsertItem h,,"Child 2"
.ExpandItem(h) = True
h = .AddItem("Root 2")
.InsertItem h,,"Child 1"
.InsertItem h,,"Child 2"
h = .AddItem("Root 3")
.InsertItem h,,"Child 1"
.InsertItem h,,"Child 2"
End With
.EndUpdate
End With
|
355
|
How can I sort the value gets listed in the drop down filter window

With ComboBox1
.LinesAtRoot = exLinesAtRoot
.MarkSearchColumn = False
.Description(exFilterBarAll) = ""
.Description(exFilterBarBlanks) = ""
.Description(exFilterBarNonBlanks) = ""
With .Columns.Add("P1")
.DisplayFilterButton = True
.DisplayFilterPattern = False
.FilterList = exSortItemsDesc
End With
With .Columns.Add("P2")
.DisplayFilterButton = True
.DisplayFilterPattern = False
.FilterList = exSortItemsAsc
End With
With .Items
h = .AddItem("Z3")
.CellCaption(h,1) = "C"
.CellCaption(.InsertItem(h,,"Z1"),1) = "B"
.CellCaption(.InsertItem(h,,"Z2"),1) = "A"
.ExpandItem(h) = True
End With
End With
|
230
|
How can I sort the items

With ComboBox1
.Columns.Add "Default"
With .Items
h = .AddItem("Root")
.InsertItem h,,"Child 1"
.InsertItem h,,"Child 2"
.ExpandItem(h) = True
End With
.Columns.Item("Default").SortOrder = SortDescending
End With
|
136
|
How can I sort by multiple columns

With ComboBox1
.SingleSort = False
.Columns.Add("C1").SortOrder = SortAscending
.Columns.Add("C2").SortOrder = SortDescending
.Columns.Add("C3").SortOrder = SortAscending
End With
|
434
|
How can I simulate displaying groups

With ComboBox1
.HasLines = exNoLine
.ScrollBySingleLine = True
With .Columns
.Add "Name"
.Add "A"
.Add "B"
.Add "C"
End With
With .Items
h = .AddItem("Group 1")
.CellHAlignment(h,0) = CenterAlignment
.ItemDivider(h) = 0
.ItemDividerLineAlignment(h) = DividerBoth
.ItemHeight(h) = 24
.SortableItem(h) = False
h1 = .InsertItem(h,,"Child 1")
.CellCaption(h1,1) = 1
.CellCaption(h1,2) = 2
.CellCaption(h1,3) = 3
h1 = .InsertItem(h,,"Child 2")
.CellCaption(h1,1) = 4
.CellCaption(h1,2) = 5
.CellCaption(h1,3) = 6
.ExpandItem(h) = True
h = .AddItem("Group 2")
.CellHAlignment(h,0) = CenterAlignment
.ItemDivider(h) = 0
.ItemDividerLineAlignment(h) = DividerBoth
.ItemHeight(h) = 24
.SortableItem(h) = False
h1 = .InsertItem(h,,"Child 1")
.CellCaption(h1,1) = 1
.CellCaption(h1,2) = 2
.CellCaption(h1,3) = 3
h1 = .InsertItem(h,,"Child 2")
.CellCaption(h1,1) = 4
.CellCaption(h1,2) = 5
.CellCaption(h1,3) = 6
.ExpandItem(h) = True
End With
End With
|
128
|
How can I show the locked / fixed items on the bottom side of the control

With ComboBox1
.ShowLockedItems = True
.Columns.Add "Column"
With .Items
.LockedItemCount(exMiddle) = 2
.CellCaption(.LockedItem(exMiddle,0),0) = "locked item 1"
.CellCaption(.LockedItem(exMiddle,1),0) = "locked item 2"
.AddItem "un-locked item"
End With
End With
|
127
|
How can I show the locked / fixed items

With ComboBox1
.ShowLockedItems = True
.Columns.Add "Column"
With .Items
.LockedItemCount(exTop) = 2
.CellCaption(.LockedItem(exTop,0),0) = "locked item 1"
.CellCaption(.LockedItem(exTop,1),0) = "locked item 2"
.AddItem "un-locked item"
End With
End With
|
336
|
How can I show the drop down window as soon as user starts typing in the control

With ComboBox1
.AutoDropDown = True
.Columns.Add "Column"
With .Items
.AddItem "Item 3"
.AddItem "Item 1"
.AddItem "Item 2"
End With
End With
|
125
|
How can I show the control's sort bar

With ComboBox1
.SortBarVisible = True
End With
|
55
|
How can I show the control's grid lines only for added/visible items

With ComboBox1
.MarkSearchColumn = False
.DrawGridLines = exRowLines
.Columns.Add "Column 1"
.Columns.Add "Column 2"
.Items.AddItem 0
.Items.AddItem 1
.Items.AddItem 2
End With
|
17
|
How can I show the control's grid lines

With ComboBox1
.MarkSearchColumn = False
.DrawGridLines = exAllLines
.Columns.Add "Column 1"
.Columns.Add "Column 2"
.Items.AddItem 0
.Items.AddItem 1
.Items.AddItem 2
End With
|
449
|
How can I show the child items with no identation

With ComboBox1
.LinesAtRoot = exGroupLinesOutside
.Indent = 12
.HasLines = exThinLine
.Columns.Add "Default"
With .Items
h = .AddItem("Root 1")
.InsertItem h,,"Child 1"
.InsertItem h,,"Child 2"
.InsertItem h,,"Child 3"
.ExpandItem(h) = True
h = .AddItem("Root 2")
.InsertItem h,,"Child 1"
.InsertItem h,,"Child 2"
.InsertItem h,,"Child 3"
End With
End With
|
12
|
How can I show or hide a column

With ComboBox1
.Columns.Add("Hidden").Visible = False
End With
|
204
|
How can I show or display the control's filter

With ComboBox1
.Columns.Add("Filter").DisplayFilterButton = True
End With
|
480
|
How can I show only the matching items, while user types in the drop down control

' EditChange event - Fired when the user has taken an action that may have altered text in an edit control.
Private Sub ComboBox1_EditChange(ByVal ColIndex As Long)
With ComboBox1
sLabel = .EditText(ColIndex)
Debug.Print( "Select the item that maches exactly the typing label: " )
Debug.Print( sLabel )
With .Items
.SelectItem(.FocusItem) = False
.SelectItem(.FindItem(sLabel,ColIndex)) = True
End With
End With
End Sub
With ComboBox1
.BeginUpdate
.SingleEdit = True
.AutoComplete = False
.AutoSelect = False
.AutoSearch = False
.AutoDropDown = True
.IntegralHeight = True
.HeaderVisible = False
.Columns.Add "Friends"
With .Items
.AddItem "Fred"
.AddItem "Tina"
.AddItem "Tom"
End With
.EndUpdate
End With
|
212
|
How can I show in italic all data in the column

With ComboBox1
Set var_ConditionalFormat = .ConditionalFormats.Add("1")
With var_ConditionalFormat
.Italic = True
.ApplyTo = exFormatToColumns
End With
.Columns.Add "Column"
.Items.AddItem 0
.Items.AddItem 1
End With
|
214
|
How can I show as strikeout all cells in the column

With ComboBox1
Set var_ConditionalFormat = .ConditionalFormats.Add("1")
With var_ConditionalFormat
.StrikeOut = True
.ApplyTo = exFormatToColumns
End With
.Columns.Add "Column"
.Items.AddItem 0
.Items.AddItem 1
End With
|
208
|
How can I show a column that adds values in the cells

With ComboBox1
.Columns.Add "A"
.Columns.Add "B"
.Columns.Add("A+B").ComputedField = "%0 + %1"
With .Items
.CellCaption(.AddItem(1),1) = 2
End With
With .Items
.CellCaption(.AddItem(10),1) = 20
End With
End With
|
600
|
How can I replace or add an icon at runtime

With ComboBox1
.BeginUpdate
.ReplaceIcon "gAAAABgYACEHgUJFEEAAWhUJCEJEEJggEhMCYEXjUbjkJQECj8gj8hAEjkshYEpk8kf8ClsulsvAExmcvf83js5nU7nkCeEcn8boMaocXosCB9Hn09pkzcEuoL/fE+O" & _
"kYB0gB9YhIHrddgVcr9aktZADAD8+P8CgIA=="
.ReplaceIcon "C:\images\favicon.ico",0
.Columns.Add("Items").Def(exCellCaptionFormat) = 1
.Items.AddItem "Item <img>1</img>"
.EndUpdate
End With
|
350
|
How can I remove the filter

With ComboBox1
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = exBlanks
End With
.ApplyFilter
.ClearFilter
End With
|
227
|
How can I remove or delete an item

With ComboBox1
.Columns.Add "Default"
h = .Items.AddItem("removed item")
.Items.RemoveItem h
End With
|
228
|
How can I remove or delete all items

With ComboBox1
.Columns.Add "Default"
.Items.AddItem "removed item"
.Items.RemoveAllItems
End With
|